package com.zmj.sy.mom.srv.aps.feign;

import com.zmj.sy.mom.srv.aps.bean.vo.base.Result;
import com.zmj.sy.mom.srv.aps.bean.vo.nest.andon.SendApsMsgDto;
import com.zmj.sy.mom.srv.aps.bean.vo.nest.andon.SendCardMsgDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

//@FeignClient(url = "http://172.31.3.95:8880", name = "momAndonFeign")
@FeignClient(url = "http://192.168.121.97:8880", name = "momAndonFeign")
public interface MomAndonFeign {

    // 套料异常信息发送到飞书指定用户
    @PostMapping("/lark/sendCardMsg")
    Result sendCardMsg(@RequestBody SendCardMsgDto dto);

    @PostMapping("/lark/sendApsMsg")
    Result sendApsMsg(@RequestBody SendApsMsgDto dto);

}
